package com.tjetc.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tjetc.common.JsonResult;
import com.tjetc.entity.City;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//BaseMapper 提供很多方法让我们使用，例如 单表操作的增删改查
public interface CityMapper extends BaseMapper<City> {

   City findCityById(@Param("city_id") Long id);
   List<City> hotcity(@Param("limit") Integer limit);

    List<City> selectALL();

    void updateLastLike(@Param("cityId") Long cityId,@Param("lastLike")Long lastLike,@Param("trend")String trend);

   List<City> getCityByClazz(Integer classId);

    List<City> searchCity(String s);
    
    List<City> getCitiesByProvinceOrderByHotness(@Param("provinceId") Long provinceId);
}
